/**
 * 
 * @author qichun(chunqi_sh@126.com)
 * @date  Jun 6, 2013 4:58:04 PM
 */
public class ZZBDS {
	public static void main(String[] args) {
		String a = "^job BaoSteel -afxon -z\"C:\\Adobe\\Central\\Server\\data\\sgB130418076357770901.dat.pdf\" -rtrunc";
		System.out.println(a);
		String pdfName = "123.pdf";
		System.out.println(a.replaceFirst("^\\^job(.)+-afxon(.)+-rtrunc", "^job PDFOUTPUT -afxon -z\"C:\\\\java\\\\tomcat6\\\\webapps\\\\bsteel_bol\\\\pdfcreated\\\\"+ pdfName+"\" -rtrunc"));
	}

}
